package com.molichuxing.services.business.dto.response;

import java.math.BigDecimal;
import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author xuelin yi
 */
@Data
public class GoodsReletMileageBizDto  extends GoodsSpecBizDto {
	private static final long serialVersionUID = 8001722102538104966L;

	@ApiModelProperty(value = "商品id")
	private Integer goodsId;

	@ApiModelProperty(value = "租车费")
	private BigDecimal rental;

	@ApiModelProperty(value = "车辆履约保证金")
	private BigDecimal bond;

	@ApiModelProperty(value = "订阅时长")
	private Integer subscribeDuration;

	@ApiModelProperty(value = "订阅时长str")
	private String subscribeDurationStr;

	@ApiModelProperty(value = "订阅服务费")
	private BigDecimal subscribeServiceFee;

	@ApiModelProperty(value = "基础里程费")
	private BigDecimal baseMileagePrice;

	@ApiModelProperty(value = "基础里程费str")
	private String baseMileagePriceStr;

	@ApiModelProperty(value = "可用里程（基础包里程）")
	private Integer baseMileage;

	@ApiModelProperty(value = "里程包list")
	private List<GoodsMileagePackageReletBizDto> packageList;

	public Integer getSubscribeDuration() {
		return subscribeDuration;
	}

	public void setSubscribeDuration(Integer subscribeDuration) {
		this.subscribeDuration = subscribeDuration == 1 ? 1
				: subscribeDuration == 3 ? 2 : subscribeDuration == 6 ? 3 : subscribeDuration;
		this.subscribeDurationStr = subscribeDuration+"个月";
	}

	public String getSubscribeDurationStr() {
		return subscribeDurationStr;
	}

	public void setSubscribeDurationStr(String subscribeDurationStr) {
		this.subscribeDurationStr = subscribeDurationStr;
	}

	public BigDecimal getSubscribeServiceFee() {
		return subscribeServiceFee;
	}

	public void setSubscribeServiceFee(BigDecimal subscribeServiceFee) {
		this.subscribeServiceFee = subscribeServiceFee;
	}

	public BigDecimal getBaseMileagePrice() {
		return baseMileagePrice;
	}

	public void setBaseMileagePrice(BigDecimal baseMileagePrice) {
		this.baseMileagePrice = baseMileagePrice;
		this.baseMileagePriceStr = baseMileagePrice == null ? null : "¥" + baseMileagePrice + "/公里";
	}

	public String getBaseMileagePriceStr() {
		return baseMileagePriceStr;
	}

	public void setBaseMileagePriceStr(String baseMileagePriceStr) {
		this.baseMileagePriceStr = baseMileagePriceStr;
	}

	public Integer getBaseMileage() {
		return baseMileage;
	}

	public void setBaseMileage(Integer baseMileage) {
		this.baseMileage = baseMileage;
	}

	public List<GoodsMileagePackageReletBizDto> getPackageList() {
		return packageList;
	}

	public void setPackageList(List<GoodsMileagePackageReletBizDto> packageList) {
		this.packageList = packageList;
	}

	public Integer getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}
}
